package com.example.renshiguanli.service.impl;

import com.example.renshiguanli.mapper.ContractMapper;
import com.example.renshiguanli.pojo.Contract;
import com.example.renshiguanli.service.ContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContractServiceImpl implements ContractService {
    @Autowired
    private ContractMapper contractMapper;
    @Override
    public List<Contract> findAllContract() {
        return contractMapper.findAllContract();
    }

    @Override
    public List<Contract> query(String name) {
        return contractMapper.query(name);
    }
}
